import { service } from '@/utils/request_ip.js' 
// 设备状态里的运维配置
export function GetList(value) {
  return service({
    url: '/File/BasicTerminalAuxs/GetList',
    method: 'post',
    data: { postdata: value }
  })
}
// 获取运维配置和设备档案里面的类型和是设备类型的下拉请求 
export function getSelectTree(value) {
  return service({
    url: '/File/SysEnumDatas/GetTree',
    method: 'post',
    data: { postdata: value }
  })
}
// 获取运维配置里面的职称的下拉请求
export function getTree(val) {
  return service({
    url: '/File/BasicJobs/GetTree',
    method: 'post',
    data: { postdata: JSON.stringify(val) }
  })
}
// 获取运维配置里面的名称的下拉请求
export function GetListByJobs(val) {
  return service({
    url: '/File/BasicUserJobs/GetListByJobs',
    method: 'post',
    data: { postdata: JSON.stringify(val) }
  })
}
// 获取运维配置里面的点击提交
export function SetDetail(postdata, isEdit) {
  if (isEdit) {
    return service({
      url: '/File/BasicTerminalAuxs/EditRow',
      method: 'post',
      data: postdata
    })
  } else {
    return service({
      url: '/File/BasicTerminalAuxs/AddRow',
      method: 'post',
      data: postdata
    })
  }
}
// 删除列表里是数据
export function delDetail(value) {
  return service({
    url: '/File/BasicTerminalAuxs/DeleteRows',
    method: 'post',
    data: { postdata: value.join(',') }
  })
}
